package com.dubbo;

import org.apache.dubbo.config.spring.context.annotation.DubboComponentScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScans;
import org.springframework.context.annotation.ImportResource;

import com.alibaba.dubbo.config.annotation.Reference;
import com.alibaba.dubbo.config.spring.context.annotation.EnableDubbo;
/**
 * 
 * @author Administrator
 * spring boot 整合 dubbo 三种方式
 *  1 ) 导入 dubbo-starter，主要用 @service [暴露服务], @Reference [引用服务]
 *  2 ) 在配置文件中配置服务相关设置，主要使用 @ImportResource("...")
 *  3 ) 使用 @Configuration 和@Bean ，用 Java创建对象,放入容器中,需要在启动类中 加入
 * 
 *
 */
@EnableDubbo
//@DubboComponentScan(basePackages = "com.dubbo")
//@ImportResource(locations = "classpath:provider.xml")
@SpringBootApplication
public class BootUserServiceProviderApplication {

	public static void main(String[] args) {
		SpringApplication.run(BootUserServiceProviderApplication.class, args);
	}

}
